-- GENERATED SPELL FOR [Gronn-Priest] --


function spell0_21350(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(36678,pUnit)
pUnit:RegisterEvent('Sorts_21350', 2000, 1)
end

function spell1_21350(pUnit, Event) --@Psychic Scream,Self--
pUnit:FullCastSpellOnTarget(22884,pUnit)
pUnit:RegisterEvent('Sorts_21350', 4349, 1)
end

function spell2_21350(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(36679,pUnit)
pUnit:RegisterEvent('Sorts_21350', 15000, 1)
end

function Sorts_21350(pUnit, Event)
local choix_sorts_21350 = math.random(0, 2)
if choix_sorts_21350 == 0 then
pUnit:RegisterEvent('spell0_21350', 1, 1)
end
if choix_sorts_21350 == 1 then
pUnit:RegisterEvent('spell1_21350', 1, 1)
end
if choix_sorts_21350 == 2 then
pUnit:RegisterEvent('spell2_21350', 1, 1)
end
end

function mob21350_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21350', math.random(1500, 3000), 1)
end

function mob21350_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21350_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21350_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21350, 1, 'mob21350_Action')
RegisterUnitEvent(21350, 2, 'mob21350_Leave')
RegisterUnitEvent(21350, 3, 'mob21350_Kill')
RegisterUnitEvent(21350, 4, 'mob21350_Die')
